package maConfigration;

public class MetricSettings {
	
	protected boolean _isApplyToProj = false;
	protected boolean _isApplyToPkg = false;
	protected boolean _isApplyToCls = false;
	protected boolean _isApplyToOp = false;
	protected boolean _isLogRawData = false;
	
	protected float _nWeightRed = 0;
	protected float _nWeightYellow = 0;
	protected float _nWeightGreen = 0;
	
	protected int _nThresholdRed = 0;
	protected int _nThresholdYellow = 0;
	protected int _nThresholdGreen = 0;

	
	protected String _sNameAb = "";
	
	protected int _nTopListBar = 0;



	public MetricSettings() {
		// TODO Auto-generated constructor stub
	}
	
	public MetricSettings(boolean isProj, boolean isPkg, boolean isCls, boolean isOp, boolean isLog,
			int nRed, int nYellow, int nGreen, int nTopList, 
			float nWRed, float nWYellow, float nWGreen, String sNameAb)
	{
		_isApplyToProj = isProj;
		_isApplyToPkg = isPkg;
		_isApplyToCls = isCls;
		_isApplyToOp = isOp;
		_isLogRawData = isLog;
		
		_nWeightRed = nWRed;
		_nWeightYellow = nWYellow;
		_nWeightGreen = nWGreen;
		_nThresholdRed = nRed;
		_nThresholdYellow = nYellow;
		_nThresholdGreen = nGreen;
		_nTopListBar = nTopList;
		_sNameAb = sNameAb;
	}
	
	public int getThresholdRed() {
		return _nThresholdRed;
	}

	public void setThresholdRed(int n) {
		_nThresholdRed = n;
	}

	public int getThresholdYellow() {
		return _nThresholdYellow;
	}

	public void setThresholdYellow(int n) {
		_nThresholdYellow = n;
	}

	public int getThresholdGreen() {
		return _nThresholdGreen;
	}

	public void setThresholdGreen(int n) {
		_nThresholdGreen = n;
	}
	
	public int getTopListBar() {
		return _nTopListBar;
	}

	public void setTopListBar(int n) {
		_nTopListBar = n;
	}

	public boolean isApplyToProj() {
		return _isApplyToProj;
	}

	public void setApplyToProj(boolean b) {
		_isApplyToProj = b;
	}

	public boolean isApplyToPkg() {
		return _isApplyToPkg;
	}

	public void setApplyToPkg(boolean b) {
		_isApplyToPkg = b;
	}

	public boolean isApplyToCls() {
		return _isApplyToCls;
	}

	public void setApplyToCls(boolean b) {
		_isApplyToCls = b;
	}

	public boolean isApplyToOp() {
		return _isApplyToOp;
	}

	public void setApplyToOp(boolean b) {
		_isApplyToOp = b;
	}
	
	public boolean isLogRawData()
	{
		return _isLogRawData;
	}
	
	public void setLogRawData(boolean b)
	{
		_isLogRawData = b;
	}

	public float getWeightRed() {
		return _nWeightRed;
	}

	public void setWeightRed(float _nWrightRed) {
		this._nWeightRed = _nWrightRed;
	}

	public float getWeightYellow() {
		return _nWeightYellow;
	}

	public void setWeightYellow(float _nWrightYellow) {
		this._nWeightYellow = _nWrightYellow;
	}

	public float getWeightGreen() {
		return _nWeightGreen;
	}

	public void setWeightGreen(float _nWrightGreen) {
		this._nWeightGreen = _nWrightGreen;
	}

	public String getNameAb() {
		return _sNameAb;
	}

	public void setNameAb(String _sNameAb) {
		this._sNameAb = _sNameAb;
	}
	

}
